package com.devi;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
public class SpringbootDemoApplication {
    @Value("${a:'1'}")
    private String a;

    @Value("${b:'b'}")
    private String b;

    @Value("${c}")
    private String c;

    public static void main(String[] args) {
        SpringApplication.run(SpringbootDemoApplication.class, args);
    }

    @RestController
    class HelloWorldController {

        @GetMapping("/hello")
        public String helloWorld() {
            return "a:" + a + ",b:" + b + ",c:" + c;
        }
    }
}
